<?php

/**
 * ProductCategoryProduct form base class.
 *
 * @method ProductCategoryProduct getObject() Returns the current form's model object
 *
 * @package    erpcrm
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
 */
abstract class BaseProductCategoryProductForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'category_iden' => new sfWidgetFormInputHidden(),
      'product_iden'  => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'category_iden' => new sfValidatorPropelChoice(array('model' => 'ProductCategory', 'column' => 'iden', 'required' => false)),
      'product_iden'  => new sfValidatorPropelChoice(array('model' => 'Product', 'column' => 'iden', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('product_category_product[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'ProductCategoryProduct';
  }


}
